<?php
/**
 *
 * @author     Daniel Botelho <botelho.daniel@gmail.com>
 */
class JSVariable
{
  private $name;
  private $value;
  
  public function __construct($name,$value)
  {
    $this->setName($name);
    $this->setValue($value);
  }
  
  public function getName(){ return $this->name; }
  public function setName($name){ $this->name = $name; }
  
  public function getValue(){ return $this->value; }
  public function setValue($value){ $this->value = $value; }
  
  public function __toString()
  {
    return 'var '. $this->getName() .' = '. $this->getValue() ."\n";
  }
}